import { defineStore } from 'pinia'

// const useTestStore = defineStore('test', {
//     state: () => {
//         return {
//             count: 0
//         }
//     },
// })


export const useTestStore = defineStore('test', {
    state: () => ({
        count: 1,
    }),
    getters: {
        doubleCount: (state) => state.count * 2,
    },
    actions: {
        increment() {
            this.count++
        },
    }
})
